from langchain_community.embeddings import DashScopeEmbeddings
import os

os.environ["DASHSCOPE_API_KEY"] = 'sk-c44402d7a12c41299bb716af8d7e8bac'

embedding_model = DashScopeEmbeddings(
    model="text-embedding-v1"
)

embedding = embedding_model.embed_documents(["我爱北京天安门", "天安门上太阳升"])

print(embedding)

for content in embedding:
    print(content)
